import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui';
import router from './static/router';
import 'element-ui/lib/theme-chalk/index.css';
import axios from 'axios';

Vue.config.productionTip = false
Vue.use(ElementUI)
Vue.prototype.$axios = axios
// Vue.prototype.$apiBaseUrl = 'http://211.64.247.145:8078'
// Vue.prototype.$apiUploadUrl = 'http://211.64.247.144:8078'
Vue.prototype.$apiBaseUrl = 'https://ldjy.lyu.edu.cn:8078'
Vue.prototype.$apiUploadUrl = 'https://ldjy.lyu.edu.cn:8078'

axios.defaults.baseURL = `${Vue.prototype.$apiBaseUrl}/api/`
// axios.defaults.baseURL = 'http://192.168.111.252:8078/api/'
// 
axios.defaults.headers.post['token'] = sessionStorage.getItem('token')


// import './request.js'
Vue.component('Header',Header)
Vue.component('Footer',Footer)
import Header from './components/index/Header.vue'
import Footer from './components/index/footer.vue'

new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
